import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
import EbookVue from "@/views/EbookVue";
import IndexVue from '@/views/IndexVue.vue';
import CategoryVue from '@/views/CategoryVue.vue';
import UserVue from '@/views/UserVue.vue';
import EbookOperatorVue from '@/views/EbookOperatorVue.vue';
import NavigationBarVue from '@/views/NavigationBarVue.vue';
import DocVue from '@/views/DocVue.vue';
import LoginVue from '@/views/LoginVue.vue';
import AianalyseVue from "@/views/AianalyseVue";
const routes = [
  {
    path:'/',
    component:IndexVue
  },
  {
    path:'/ebook',
    component:EbookVue
  },
  {
    path:'/category',
    component:CategoryVue
  },
  {
    path:'/user',
    component:UserVue
  },
  {
    path:'/ebook/:id',
    component:EbookOperatorVue
  },
  {
    path:'/navigationBarVue/:catrgoryId',
    component:NavigationBarVue
  },
  {
    path:'/docVue/:ebookId',
    component:DocVue
  },
  {
    path:'/login',
    component:LoginVue
  },
  {
    path: '/aianalyse',
    component: AianalyseVue
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
